//
//  LoginModel.m
//  Weiweiyunshi
//
//  Created by 王译 on 17/2/13.
//  Copyright © 2017年 王译. All rights reserved.
//

#import "LoginModel.h"

@implementation LoginModel

- (instancetype)init {
    if (self = [super init]) {
        self.userDic = [NSMutableDictionary dictionary];
        self.userArr = [NSMutableArray array];
    }
    return self;
}

static dispatch_once_t onceToken;

static LoginModel *sharedClient = nil;

+ (instancetype)sharedInstance {
    
    dispatch_once(&onceToken, ^{
        
        sharedClient = [[LoginModel alloc] init];
    });
    return sharedClient;
}

+ (void)tearDown{
    
    sharedClient=nil;
    
    onceToken=0l;
}

+(NSMutableArray *)singletonArr{
    static NSMutableArray *shareClientArr = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        shareClientArr = [[NSMutableArray alloc] init];
    });
    return shareClientArr;
}

@end
